package com.meiwenhui.sishuwujing.entities;

import com.orm.androrm.Model;
import com.orm.androrm.field.CharField;
import com.orm.androrm.field.IntegerField;

public class Book extends Model {

	protected IntegerField bookId;
	protected CharField name;
	protected CharField alias;
	protected CharField author;
	protected IntegerField authorId;
	protected IntegerField ordinal;
	protected IntegerField catalogueId;

	public Book() {
		super();
		this.bookId = new IntegerField();
		this.name = new CharField(255);
		this.alias = new CharField(255);
		this.author = new CharField(255);
		this.authorId = new IntegerField();
		this.ordinal = new IntegerField();
		this.catalogueId = new IntegerField();
	}

	public Integer getBookId() {
		return bookId.get();
	}

	public void setBookId(Integer bookId) {
		this.bookId.set(bookId);
	}

	public Integer getAuthorId() {
		return authorId.get();
	}

	public void seAuthorId(Integer authorId) {
		this.authorId.set(authorId);
	}

	public String getName() {
		return name.get();
	}

	public void setName(String name) {
		this.name.set(name);
	}

	public String getAlias() {
		return alias.get();
	}

	public void setAlias(String alias) {
		this.alias.set(alias);
	}

	public String getAuthor() {
		return author.get();
	}

	public void setAuthor(String author) {
		this.author.set(author);
	}

	public Integer getOrdinal() {
		return ordinal.get();
	}

	public void setOrdinal(Integer ordinal) {
		this.ordinal.set(ordinal);
	}

	public Integer getCatalogueId() {
		return catalogueId.get();
	}

	public void setCatalogueId(Integer catalogueId) {
		this.catalogueId.set(catalogueId);
	}

}
